import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    screenNum:4,
    cameraId:'',
    playids:[],
    clickItem:{},
    fullScreen:false,
  },
  mutations: {
    switchScreen(state,num) {
      state.screenNum = num
    },
    setCameraId(state,cameraId) {
      state.cameraId = cameraId
    },
    setPlayids(state,playids) {
      state.playids = playids
    },
    setItem(state,clickItem) {
      state.clickItem = clickItem
    },
    setFullScreen(state,fullScreen) {
      state.fullScreen = fullScreen
    },
  },
  actions: {}
});
